package com.liu.lab10.dao.impl;

import com.liu.lab10.dao.UserDao;
import org.springframework.stereotype.Repository;

@Repository("userDaoImpl")
public class UserDaoImpl implements UserDao {
	@Override
	public void info(int id, String name) {
		System.out.println("UserDaoImpl info is called!");
		System.out.println("个人信息如下：");
		System.out.println("学号：di="+id+",姓名name="+name);
		System.out.println("userDao info is called!");
	}

	@Override
	public boolean login(String name, String password) {
		System.out.println("UserDaoImpl login is called!");
		if (name.equals("刘小文")&&password.equals("123456")){
			return true;
		}
		return false;
	}

}
